
const routers=
    [
        {
            path: '/',
            name:'主页',
            redirect:"/home",
            display:false
        },
        {
            path: '/home',
            name:'首页',
            icon:'el-icon-house',
            redirect: '/home/dashboard',
            component: ()=>import('@/views/home/page/home'),
            children:[
                {
                    path: "/home/dashboard",
                    name: 'dashboard',
                    component: () => import ('@/views/home/page/DashBoard'),
                    display: false
                },
                {
                    path:"/home/task",
                    name:'任务',
                    component: ()=>import('@/views/home/page/Task'),
                    display:true,
                    icon:'el-icon-document'
                },
                {
                  path:"/home/timeline",
                  name:'时间线',
                  component:()=>import('@/views/home/page/timeline'),
                  display: true,
                  icon: 'el-icon-timer'
                }
            ],
            display: true
        },
        {
            path: '/task/:id',
            name:'任务详情',
            component:()=>import('@/views/home/page/TaskDetail')
        },
        {
            path: '/userProfile',
            name:'用户信息',
            component:()=>import('@/views/home/page/UserProfile.vue')
        }
    ]
export default routers
